package patrol.mobile.com.mobilepatrol.activity.route_query;

/**
 * Created by apple on 18/1/23.
 */

public class RouteDataManager {
//    public static void delRoutes(){
//        final RealmResults<RouteManage> users = getRoutes();
//        realm.executeTransaction(new Realm.Transaction() {
//            @Override
//            public void execute(Realm realm) {
//                users.deleteAllFromRealm();
//            }
//        });
//
//    }
//    public static RealmResults<RouteManage> getRoutes(){
//        return realm.where(RouteManage.class).findAll();
//    }
//    public static RealmResults<RouteManage> getRoutesByOrgId(){
//        return realm.where(RouteManage.class).equalTo("orgId", UserManager.getOrgNo()).findAll();
//    }
//    public static RealmResults<RouteManage> getRoutesByOrgIdAndType(String type){
//        return realm.where(RouteManage.class)
//                .equalTo("orgId", UserManager.getOrgNo())
//                .equalTo("custodyRouteType",type)
//                .findAll();
//    }
//    public static RealmResults<RouteManage> getRoutesByType(){
//        return realm.where(RouteManage.class)
//                .
//                .findAll();
//    }

}
